/**
 * 
 */
package com.jm.web;

import javax.servlet.jsp.PageContext;

import com.jm.utils.StringBuilderEx;

/**
 * @author yanjie
 * Feb 29, 2012 10:32:28 AM
 */
public class ReportPage  extends BaseDAPage{
	@Override
	public void PreparePageEnv(PageContext pageContext) {
		this.setFastMode(true);
		this.setSupportPrint(true);
		super.PreparePageEnv(pageContext);
	}
	
	@Override
	protected void OnLoad() {
		
		
//		打開filter按鈕
//		this.setFilterEnab(false);
		this.getToolbar().SetExtValue("newEnab","false");
		this.getToolbar().SetExtValue("searchEnab","false");
		this.getToolbar().SetExtValue("saveEnab","false");
		this.getToolbar().SetExtValue("cancelEnab","false");
		this.getToolbar().SetExtValue("deleteEnab","false");
		this.getToolbar().SetExtValue("copyEnab","false");
		this.getToolbar().SetExtValue("startEnab","false");
		this.getToolbar().SetExtValue("checkEnab","false");
		this.getToolbar().SetExtValue("exportEnab","false");
		
		
		
		super.OnLoad();
	}
	
	@Override
	public String outputHiddenItem() {
		StringBuilderEx sb = new StringBuilderEx();
		sb.Append(super.outputHiddenItem());
		sb.Append("\r\n<input type=\"hidden\" id=\"pagetype\" name=\"pagetype\" value=\"print\" />");
		return sb.toString();
	}
}
